// @ts-ignore
/* eslint-disable */
import request from '@/request.ts'

/** 此处后端没有提供注释 POST /conversation/delete */
export async function deleteConversation(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteConversationParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/api/conversation/delete', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /conversation/edit */
export async function editConversationTitle(
  body: API.ConversationEditeRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/api/conversation/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /conversation/getConversation */
export async function getConversation(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getConversationParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseConversation>('/api/conversation/getConversation', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /conversation/getConversationBypage */
export async function getConversationByPage(
  body: API.ConversationQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageConversation>('/api/conversation/getConversationBypage', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
